package com.example.newdemo.view.image.svg;

//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//


public class PreserveAspectRatio {
    private PreserveAspectRatio.Alignment alignment;
    private PreserveAspectRatio.Scale scale;
    public static final PreserveAspectRatio UNSCALED = new PreserveAspectRatio((PreserveAspectRatio.Alignment)null, (PreserveAspectRatio.Scale)null);
    public static final PreserveAspectRatio STRETCH;
    public static final PreserveAspectRatio LETTERBOX;
    public static final PreserveAspectRatio START;
    public static final PreserveAspectRatio END;
    public static final PreserveAspectRatio TOP;
    public static final PreserveAspectRatio BOTTOM;
    public static final PreserveAspectRatio FULLSCREEN;
    public static final PreserveAspectRatio FULLSCREEN_START;

    static {
        STRETCH = new PreserveAspectRatio(PreserveAspectRatio.Alignment.None, (PreserveAspectRatio.Scale)null);
        LETTERBOX = new PreserveAspectRatio(PreserveAspectRatio.Alignment.XMidYMid, PreserveAspectRatio.Scale.Meet);
        START = new PreserveAspectRatio(PreserveAspectRatio.Alignment.XMinYMin, PreserveAspectRatio.Scale.Meet);
        END = new PreserveAspectRatio(PreserveAspectRatio.Alignment.XMaxYMax, PreserveAspectRatio.Scale.Meet);
        TOP = new PreserveAspectRatio(PreserveAspectRatio.Alignment.XMidYMin, PreserveAspectRatio.Scale.Meet);
        BOTTOM = new PreserveAspectRatio(PreserveAspectRatio.Alignment.XMidYMax, PreserveAspectRatio.Scale.Meet);
        FULLSCREEN = new PreserveAspectRatio(PreserveAspectRatio.Alignment.XMidYMid, PreserveAspectRatio.Scale.Slice);
        FULLSCREEN_START = new PreserveAspectRatio(PreserveAspectRatio.Alignment.XMinYMin, PreserveAspectRatio.Scale.Slice);
    }

    public PreserveAspectRatio(PreserveAspectRatio.Alignment alignment, PreserveAspectRatio.Scale scale) {
        this.alignment = alignment;
        this.scale = scale;
    }

    public PreserveAspectRatio.Alignment getAlignment() {
        return this.alignment;
    }

    public PreserveAspectRatio.Scale getScale() {
        return this.scale;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        } else if (obj == null) {
            return false;
        } else if (this.getClass() != obj.getClass()) {
            return false;
        } else {
            PreserveAspectRatio other = (PreserveAspectRatio)obj;
            if (this.alignment != other.alignment) {
                return false;
            } else {
                return this.scale == other.scale;
            }
        }
    }

    public static enum Alignment {
        None,
        XMinYMin,
        XMidYMin,
        XMaxYMin,
        XMinYMid,
        XMidYMid,
        XMaxYMid,
        XMinYMax,
        XMidYMax,
        XMaxYMax;

        private Alignment() {
        }
    }

    public static enum Scale {
        Meet,
        Slice;

        private Scale() {
        }
    }
}
